<template>
  <div id="app">
    <div id="app-nav">
      <router-link tag="div" to="/">
        首页
      </router-link>
      <router-link tag="div" to="/about">
        关于
      </router-link>
    </div>
    <router-view/>
  </div>
</template>
<script>

</script>
<style>
* {
  margin: 0;
  padding: 0;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#app-nav {
  left: 0;
  top: 0;
  padding: 5px 0;
  display: flex;
  align-items: center;
  position: fixed;
}
#app-nav div{
  padding: 5px 20px;
  margin: 0 10px;
  font-size: 12px;
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid #42b983;
  cursor: pointer;
}
</style>
